#ifndef _GLOBALVAR_H
#define _GLOBALVAR_H

#include <string>
using namespace std;

struct globalFunction
{
    static void setCurrentExeDir(const char *path)
    {
        sCurrentExeDir = path;
        int pos = sCurrentExeDir.find_last_of(string("\\"));
        sCurrentExeDir = sCurrentExeDir.substr(0, pos + 1);
    }
    inline static string sCurrentExeDir;
};
  inline  globalFunction sCurrentExeDir;
#endif